import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `http://124.70.196.178:8080/intelligent_control_webservice_eeds`

/**
 * 地图管理
 */
// 获取定位地图
export function getLocationMap(params) {
  return get(`${packageName}/pc/locationMap/getLocationMap`, params)
}
// 获取定位地图列表
export function getLocationMapList(params) {
  return get(`${packageName}/pc/locationMap/getLocationMapList`, params)
}
// 获取全部定位地图列表（考场id）
export function getLocationMaps(params) {
  return get(`${packageName}/pc/locationMap/getLocationMaps`, params)
}
// 删除定位地图
export function delLocationMap(params) {
  return del(`${packageName}/pc/locationMap/delLocationMap`, params)
}
// 保存定位地图
export function saveLocationMap(params) {
  return post(`${packageName}/pc/locationMap/saveLocationMap`, params)
}

/**
 * 标签管理
 */
// 获取定位标签
export function getLocationLabel(params) {
  return get(`${packageName}/pc/locationLabel/getLocationLabel`, params)
}
// 获取定位标签列表
export function getLocationLabelList(params) {
  return get(`${packageName}/pc/locationLabel/getLocationLabelList`, params)
}
// 获取全部定位标签列表（考场id）
export function getLocationLabels(params) {
  return get(`${packageName}/pc/locationLabel/getLocationLabels`, params)
}
// 删除定位标签
export function delLocationLabel(params) {
  return del(`${packageName}/pc/locationLabel/delLocationLabel`, params)
}
// 保存定位标签
export function saveLocationLabel(params) {
  return post(`${packageName}/pc/locationLabel/saveLocationLabel`, params)
}
export function saveLocationMapSetVideo(params) {
  return post(`${packageName}/pc/locationMapSetVideo/saveLocationMapSetVideo`, params)
}
export function delLocationMapSetVideo(params) {
  return del(`${packageName}/pc/locationMapSetVideo/delLocationMapSetVideo`, params)
}

/**
 * 位置查询
 */
// 获取位置查询
export function getLocationMapSets(params) {
  return get(`${packageName}/pc/locationMapSet/getLocationMapSets`, params)
}
export function getLoacalAreas(params) {
  return get(`${packageName}/pc/locationMapSet/getLoacalAreas`, params)
}
export function getLocationMapSetList(params) {
  return get(`${packageName}/pc/locationMapSet/getLocationMapSetList`, params)
}
export function delLocationMapSet(params) {
  return del(`${packageName}/pc/locationMapSet/delLocationMapSet`, params)
}
export function getLocationMapSet(params) {
  return get(`${packageName}/pc/locationMapSet/getLocationMapSet`, params)
}
export function saveLocationMapSet(params) {
  return post(`${packageName}/pc/locationMapSet/saveLocationMapSet`, params)
}
export function getLocationMapSetVideoList(params) {
  return get(`${packageName}/pc/locationMapSetVideo/getLocationMapSetVideoList`, params)
}
/**
 * 电子围栏区域
 */
// 批量保存电子围栏区域
export function batchSaveLocationMapSet(params) {
  return post(`${packageName}/pc/locationMapSet/batchSaveLocationMapSet`, params)
}

/**
 * 报警管理
 */
// 获取报警管理列表
export function getDataAlarmLocationList(params) {
  return get(`${packageName}/pc/dataAlarmLocation/getDataAlarmLocationList`, params)
}
export function getSysSet(params) {
  return get(`${packageName}/pc/sysSet/getSysSet`, params)
}
export function saveSysSet(params) {
  return post(`${packageName}/pc/sysSet/saveSysSet`, params)
}
